#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>



//void test(char ar[10])
//{
//	printf("%d\n", sizeof(ar));
//}
//
//int main()
//{
//	char arr[10] = { 0 };
//	printf("%d\n", sizeof(arr));
//	test(arr);
//}



void reverse(int arr[], int sz)
{
	int L, R, M;
	R = sz - 1;
	L = 0;
	M = (L + R) / 2;
	while (R > L)
	{
		int tmp = 0;
		tmp = arr[R];
		arr[R] = arr[L];
		arr[L] = tmp;
		R--;
		L++;
		
	}
}

int main()
{
	int sz = 0;
	int arr[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	sz = sizeof(arr) / sizeof(arr[0]);
	reverse(arr,sz);
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}